package com.point.base;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public abstract class AbstractRequestDto {
    @ApiModelProperty(value = "第几页")
    Integer pageNum;
    @ApiModelProperty(value = "每页记录数")
    Integer pageSize;

    public Integer getPageNum() {
        if (this.pageNum == null) {
            this.pageNum = 1;
        }
        return pageNum;
    }

    public Integer getPageSize() {
        if (this.pageSize == null) {
            this.pageSize = 10;
        }
        return pageSize;
    }
}
